<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
%>
<html>
	<jsp:include page="../common/init.jsp"></jsp:include>
	<head>
		<title>人员信息</title>
		<link rel="stylesheet" href="<%=path%>/css/fixedTable.css" type="text/css" />
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/javaScript/jquery.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/javaScript/jquery.fixedheadertable.min.js"></script>
		<script type="text/javascript">
		 $(document).ready(function(){
			    $('#listTable').fixedHeaderTable({altClass: 'odd', themeClass: 'fancyTable', autoShow: false });
			    $('#listTable').fixedHeaderTable('show');
         }); 
		//数据查询;
		function doSearch(action)
		{
			if(isSpecial(document.getElementById("xm").value))
			{
				alert("姓名包含非法字符,请重新输入!");
				document.getElementById("xm").focus();
				return false;
			}else if(isSpecial(document.getElementById("zw").value))
			{
				alert("职务包含非法字符,请重新输入!");
				document.getElementById("zw").focus();
				return false;
			}else
			{
				document.getElementById("listForm").action = action;
				document.getElementById("listForm").submit();
			}
		}
		//弹出添加页面
		function doAdd()
		{
			popPage("createRyjbxxForm.do?bmbh=${bmbh}",600,660);
		}
		//删除操作
		function doDelete(rybh)
		{
			var action = "removeRyjbxx.do";
			if(rybh!="")
			{
				rybhs=rybh;
			}
			else
			{
				if(checkSCount()<1)
				{
					alert("请选中要删除的记录!");
					return false;
				}
				rybhs = checksValue();	
			}
			document.forms[0].rybhs.value=rybhs;
			if(confirm("确定要删除记录吗?"))
			{
				document.forms[0].action=action;
				document.forms[0].submit();
			}	
			else
			{
				return false;
			}
		}
		//排序
		function doPaixu(numSize)
		{
			if(numSize<2)
			{
				alert("部门人员个数少于2个，不需要排序。");
				return false;
			}
			else
			{
				popPage('listOrderRyjbxx.do?bmbh=${bmbh}',400,400);
			}
		}
		
		mpmenu1=new mMenu('','doAdd()','script','<%=path%>/images/img_ht_wz_37.gif','62','24','0','100','2');
		mpmenu3=new mMenu('','doDelete(\"\")','script','<%=path%>/images/img_ht_wz_41.gif','62','24','0','20','0');
		mpmenu4=new mMenu('','doSearch(\"listRyjbxx.do\")','script','<%=path%>/images/img_ht_wz_46.gif','62','24','0','300','0');
		<%if (!(request.getAttribute("orderFlag") + "").equals("-1")) {%>
		mpmenu5=new mMenu('','doPaixu(<s:property value="ryxxList.size"/>)','script','<%=path%>/images/img_ht_wz_80.gif','62','24','0','100','2');
		<%}%>
		</script>
	</head>
	<body>
		<div id="rightall">
			<s:form id="listForm" action="" method="get">
				<table cellspacing="0" cellpadding="0" class="main_tab1">
					<tr>
						<td class="">
							<img src="<%=path%>/images/img_ht_wz_28.gif" alt="left" />
						</td>
						<td class="main_tab1_td2">
							<div id="location">
								人员信息
							</div>
							<div id="funbut">
								<SCRIPT>document.write(mwritetodocument());</SCRIPT>
							</div>
						</td>
						<td class="main_tab1_td1">
							<img src="<%=path%>/images/img_ht_wz_32.gif" alt="right" />
						</td>
					</tr>
					<tr>
						<td colspan="3" class="main_tab1_td3">
							<div id="mainbg">
								<div class="jiange10"></div>
								<table width="100%" border="0" cellspacing="0" cellpadding="0"
									class="main_tab3">
									<tr>
										<th width="100">
											<img src="<%=path%>/images/img_ht_wz_58.gif" alt="查询条件"
												class="img_01">
											查询条件
										</th>
										<td>
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0" class="main_tab4">
												<tr>
													<th>
														姓名：
													</th>
													<td>
														<s:hidden name="actionId"></s:hidden>
														<s:hidden name="bmbh"></s:hidden>
														<input name="rybhs" type="hidden" value="">
														<input id="xm" name="ryjbxx.xm" type="text" class="inp_01"
															size="20" maxlength="25"
															value="<s:property value="ryjbxx.xm" />">
													</td>
													<th>
														职务：
													</th>
													<td>
														<input id="zw" name="ryjbxx.zw" type="text" class="inp_01"
															size="20" maxlength="25"
															value="<s:property value="ryjbxx.zw" />">
													</td>
													<td>
														&nbsp;
													</td>
													<td>
														&nbsp;
													</td>
													<td>
														&nbsp;
													</td>
													<td>
														&nbsp;
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
								<div class="jiange10"></div>
								<div  style="height: 80%; width: 100%; overflow: auto;">
									<table id="listTable" border="0" cellspacing="0" cellpadding="0">
									  <thead>
										<tr>
											<th>
												全选
												<input type="checkbox" id="ids" name="checkbox3" value="1" onclick="selectAll();">
											</th>
											<th>
												操作
											</th>
											<th>
												人员编号
											</th>
											<th>
												姓名
											</th>
											<th>
												职务
											</th>
											<th>
												联系电话
											</th>
											<th>
												Email
											</th>
										</tr>
									  </thead>
									  <tbody>	
										<s:iterator value="ryxxList" status="index">
											<tr
												ondblclick="popPage('infoRyjbxx.do?rybh=<s:property  value="rybh" />',550,600);">
												<td>
													<input type="checkBox" id="id" name="rybh"
														onclick="selectNoAll()"
														value="<s:property  value="rybh" />">
												</td>
												<td>
													<a href="javascript:popPage('reworkRyjbxxForm.do?rybhs=<s:property  value="rybh"/>&bmbh=${bmbh}',550,600)">修改</a>
													<a href="javascript:doDelete('<s:property  value="rybh"/>')">删除</a>
												</td>
												<td>
													<s:property value="rybh" />
												</td>
												<td>													
												    <s:property value="xm" />													
												</td>
												<td>
													<s:property value="zw" />
												</td>
												<td>
													<s:property value="lxdh" />
												</td>
												<td>
													<s:property value="dzyj" />
												</td>
											</tr>
										</s:iterator>
										</tbody>
									</table>
								</div>
								<jsp:include page="../common/page.jsp">
									<jsp:param value="listRyjbxx.do" name="doAction" />
								</jsp:include>
							</div>
						</td>
					</tr>
					<tr>
						<td class="main_tab1_td4">
							<img src="<%=path%>/images/img_ht_wz_65.gif" alt="left" />
						</td>
						<td class="main_tab1_td5"></td>
						<td class="main_tab1_td4">
							<img src="<%=path%>/images/img_ht_wz_67.gif" alt="right" />
						</td>
					</tr>
				</table>
			</s:form>
		</div>
	</body>
</html>
